import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import initModels from '@/modules/initModels'

const app = createApp(App)
initModels.init()


app.use(createPinia())

app.mount('#app')



window.addEventListener("resize", setBodyZoom)
// window.document.body.style.transformOrigin = '0 0 0'
function setBodyZoom(): void {
    let zoom: Number
    if (window.innerWidth < 1200) {
        zoom = window.innerWidth / 1200
    } else {
        zoom = 1
    }
    let style: any = window.document.body.style
    style.zoom = zoom
    style.setProperty("--z-zoom", String(zoom))
}
setBodyZoom()